<script setup>
    import {useCounterStore} from '@/stores/counter'
    import { ref } from 'vue'
    const counter = useCounterStore()
    counter.count++
    // counter.$patch('count',counter.count+1)
    counter.increment()
    const ss = ref('一\n二')
</script>

<template>
    <div>
        <p>

            count: {{ counter.count }}
        </p>
        <div style="white-space: pre-wrap">
            {{ss}}
        </div>
    </div>
</template>